package domain;

import builder.database.Column;
import builder.database.Table;

import java.util.List;

public class Student implements Table {
	public static final Table TABLE = new Student();

	public static final Column
		ID			= new Column(TABLE,"id"),
		NAME		= new Column(TABLE,"name"),
		HEIGHT		= new Column(TABLE,"height"),
		WEIGHT		= new Column(TABLE,"weight"),
		ADDRESS_ID	= new Column(TABLE,"address_id");	
	
	private String 			name;
	private int 			height;
	private int 			weight;
	private Address 		address;
	private List<Vehicle> 	vehicles;
	
	public Student() {}
	
	public Student(String name, int height, int weight, Address address, List<Vehicle> vehicles) {
		this.name 		= name;
		this.height 	= height;
		this.weight 	= weight;
		this.address 	= address;
		this.vehicles 	= vehicles;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}
	
	public Address getAddress() {
		return address;
	}
	
	public void setAddress(Address address) {
		this.address = address;
	}
	
	public List<Vehicle> getVehicles() {
		return vehicles;
	}
	
	public void setVehicles(List<Vehicle> vehicles) {
		this.vehicles = vehicles;
	}
	
	@Override
	public String getTableName() {
		return "student";
	}
	
	@Override
	public String getTableShortName() {
		return "stud";
	}
}
